package com.itany.conf;

import com.alipay.api.DefaultAlipayClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class AlipayConfig {

     @Bean(name="alipayClient")
    public DefaultAlipayClient alipayClient(){
         DefaultAlipayClient alipayClient =
                 new DefaultAlipayClient("https://openapi.alipaydev.com/gateway.do"
                 ,"2021000117698297"
                 ,"MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCX2TEhcTJ7Au05p59Gg99woMzqG3NTxebnFOz8H4fTZdsYvSkezX1UKtXca5+RprpsTNoHNSo6hyCPYsacZFWRdhfTyH0C0itwPFlTaZbgztbHxpwGtBy9h/TIKCgv4szKZtre0bL8c0hZhQpOZNhdpB3CR/ep2mUdSzwnaf794j7xzw+bZB3hVfH8PAlgwpVGvfPxfbIBsKGNyX1aXuOS2gZNkIy2eMTAXE5BPNzskyOCCs6f3Egk4/ir5rY9jeAnQ2VtgZb1qBFBJVBZWeb9REHklBdTxpv9aW/fVlXnYLY6YVYEj30NiljvgA4Kh32OECU7nCPtHkCpRJck4xc1AgMBAAECggEAD1J+L6axdlIsR9YPL1ldMYs4QiM09u4QR58H7sTrurwbaJqlzJLlo5mS7OP7PQI663Sxx2po8XDzKyTHb758F+p3qwoe+yrj8TZVuSH9dH/KkmwLEG4aPFG8tHnA3FwhWAca7MLyMaEcWtQe3xwz7PcDfbgvWHdOHq+ZyUxby5hh+uS5H2oYbxilssNZZ8XNdNCoBQnVDNO3+5CNJQG7u+T/VgNfVjGupPI+e3QaKCt9FgPP1Q+s7G5/IGyIIZhXZkwt5kTGLmBjuPxoaup/sURwa1TMtVhDnqNG4Rwh2tutvWViuyAUipe2g3huntb79Rieq26jvjbTW14PioCv3QKBgQDMUdRN5AX1s1AhcNVR7kC4ZkJBYNoU9BzJjg0oG2FGLW/mpFck3U50Fci5Lp1t12/DwfkIYxFHQtM53+mfla75mOtQ4FicEKL38MFbwWA2iGZkmnZsgSUABWkoaWAGtd2KdEh+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543IxbSjwYEr94mSJkhK8/csSwEU5q/R70bmdkyeSyai7Ft2wWIgBR2bkEeU9162LX37aaK5Y8wIDAQAB"
                 ,"RSA2");
         return alipayClient;
    }


}
